#! python
#! -*- coding: utf-8 -*-

import unittest
import utils

__author__ = 'anton'

class Test(unittest.TestCase):
    def test_fit(self):
        self.assertEquals((10, 10), utils.fit(10, 10, 10, 10))
        self.assertEquals((10, 10), utils.fit(10, 10, 10, 10))
        self.assertEquals((5, 5), utils.fit(10, 10, 5, 5))
        self.assertEquals((10, 5), utils.fit(20, 10, 10, 10))
        self.assertEquals((5, 10), utils.fit(10, 20, 10, 10))
        self.assertEquals((10, 20), utils.fit(20, 40, 10, 20))


if __name__ == '__main__':
    unittest.main()